<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% 
String path = request.getContextPath(); //解決跳轉后樣式丟失的問題
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 	
%>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
     <link rel="stylesheet" type="text/css" href="<%=path%>/background/style/resource/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="<%=path%>/background/style/resource/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="<%=path%>/background/style/resource/Css/style.css" />
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/jquery.js"></script>
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/bootstrap.js"></script>
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/ckform.js"></script>
    <script type="text/javascript" src="<%=path%>/background/style/resource/Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
<form action="<%=path%>/store/updateStore" method="post" class="definewidth m20" >
	<input type="hidden" name="id" value="${msg.id}" />
	<input type="hidden" id="pc" value="${pc}"/>
	<table class="table table-bordered table-hover definewidth m10">
	 <tr>
        <td width="10%" class="tableleft">店铺名</td>
        <td><input type="text" name="name" value="${msg.name}"/></td>
    </tr>  
    <tr>
        <td width="10%" class="tableleft">用户名</td>
        <td><input type="text" name="info.name" value="${msg.info.name}" readonly="readonly"/></td>
    </tr>  
    <tr>
        <td class="tableleft">性别</td>
        <td>
            <input type="radio" name="sex" value="${msg.info.sex}" readonly="readonly" checked/> 男
            <input type="radio" name="sex" value="0" readonly="readonly"/> 女
        </td>
    </tr>
	<tr>
        <td class="tableleft">生日</td>
        <td><input type="text" name="info.birthday" value="${msg.info.birthday}" readonly="readonly"/></td>
    </tr> 
	 <tr>
        <td class="tableleft">电话号码</td>
        <td><input type="text" name="info.number" value="${msg.info.number}" readonly="readonly"/></td>
    </tr> 
	 <tr>
        <td class="tableleft">星级</td>
        <td><input type="text" name="level" value="${msg.level}" readonly="readonly"/></td>
    </tr>
     <tr>
        <td class="tableleft">注册时间</td>
        <td><input type="text" name="info.time" value="${msg.info.time}" readonly="readonly"/></td>
    </tr>
    <tr>
        <td class="tableleft"></td>
        <td>
            <input type="submit" class="btn btn-primary" value="修改信息"/>&nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
        </td>
    </tr>
</table>
</form>
</body>
<script>
    $(function(){
		$('#backid').click(function(){
				window.location.href="../background/storemanager/store.jsp";
		 });
    });
</script>
</html>
